home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 3.2 / Ham Radio Version 3.2 (Chestnut CD-ROMs)(1993).ISO / packet / n17jsrc / ftpcli.h < prev    next >
C/C++ Source or Header  |  1991-04-28  |  1KB  |  49 lines

  1. /* Mods by G1EMM and PA0GRI */
  2. #ifndef    _FTPCLI_H
  3. #define    _FTPCLI_H
  4.  
  5. #include <stdio.h>
  6.  
  7. #ifndef    _FTP_H
  8. #include "ftp.h"
  9. #endif
  10.  
  11. #ifndef _SESSION_H
  12. #include "session.h"
  13. #endif
  14.  
  15. #define    LINELEN    256        /* Length of user command buffer */
  16.  
  17. #define CTLZ    26        /* EOF for CP/M systems */
  18.  
  19. /* Per-session FTP client control block */
  20. struct ftpcli {
  21.     int control;        /* Control socket */
  22.     int data;        /* Data socket */
  23.  
  24.     char state;
  25. #define    COMMAND_STATE    0    /* Awaiting user command */
  26. #define    SENDING_STATE    1    /* Sending data to user */
  27. #define    RECEIVING_STATE    2    /* Storing data from user */
  28.  
  29.     int16 verbose;        /* Transfer verbosity level */
  30. #define    V_QUIET        0    /* Error messages only */
  31. #define    V_SHORT        1    /* Final message only */
  32. #define    V_NORMAL    2    /* display control messages */
  33. #define    V_HASH        3    /* control messages, hash marks */
  34. #define V_BYTE        4    /* control messages, byte count */
  35.  
  36.     int batch;        /* Command batching flag */
  37.     int abort;        /* Aborted transfer flag */
  38.     char type;        /* Transfer type */
  39.     char typesent;        /* Last type command sent to server */
  40.     int logbsize;        /* Logical byte size for logical type */
  41.     FILE *fp;        /* File descriptor being transferred */
  42.  
  43.     struct session *session;
  44.     char *password;
  45. };
  46. #define    NULLFTP    (struct ftpcli *)0
  47.  
  48. #endif    /* _FTPCLI_H */
  49.